<div class="panel-group" id="sec_menu" role="tablist" aria-multiselectable="true">
 <foreach name="SEC_MENU" item="row">
  <div class="panel panel-default">
    <div class="panel-heading" role="tab" id="sec_menu_{$row['id']}">
      <h4 class="panel-title">
        <a class="collapsed" role="button" data-toggle="collapse" data-parent="#sec_menu" href="#link_sec_menu_{$row['id']}" aria-expanded="false" aria-controls="#link_sec_menu_{$row['id']}">
          <span class="{$row['img']}" aria-hidden="true"></span>
            &nbsp;&nbsp;{$row['title']}
        </a>
      </h4>
    </div>
    <if condition="$row['node_name'] eq $PUB_URL_NODE">
      <div id="link_sec_menu_{$row['id']}" class="panel-collapse collapse  in" role="tabpanel" aria-labelledby="sec_menu_{$row['id']}">
    <else />
      <div id="link_sec_menu_{$row['id']}" class="panel-collapse collapse " role="tabpanel" aria-labelledby="sec_menu_{$row['id']}">
    </if>
      <div class="panel-body">
          <?php $next_menu=get_menu(array('type'=>'2','pid'=>$row['id'])) ?>
          <foreach name="next_menu" item="row1">
            <if condition="$row1['node_name'] eq $PUB_NODE">
              <a type="button" class="link next_active" href="{:U($row1['node_name'])}">
            <else />
              <a type="button" class="link" href="{:U($row1['node_name'])}">
            </if>
              <span class="{$row1['img']}" aria-hidden="true"></span>
              &nbsp;&nbsp;{$row1['title']}
            </a>
          </foreach>
      </div>
    </div>
  </div>
  </if>
  </foreach>
</div>
